//比牌算法相同测试

var _user_poker = {
	a: [{label:3,value:2,suit:'DIAMOND'},{label:10,value:9,suit:'SPADE'}],
	b: [{label:3,value:2,suit:'CLUB'},{label:2,value:1,suit:'CLUB'}],
	c: [{label:8,value:7,suit:'HEART'},{label:4,value:3,suit:'HEART'}]
	};
var _pub_poker = [
	{label:9, value:8, suit:'CLUB' },
	{label:9, value:8, suit:'DIAMOND' },
	{label:9, value:11, suit:'SPADE' },
	{label:'Q', value:11, suit:'CLUB' },
	{label:'J', value:12, suit:'DIAMOND' }	
];
var texas = new texasPoker();
var _user_max_poker = [];
for(var i in _user_poker) {
	var _user_max = texas.getResult(_user_poker[i], _pub_poker);
	var _temp = { cards:_user_max['cards'], result:_user_max['result'], key:i };
	_user_max_poker.push(_temp);
}
__log.show(_user_max_poker);
var _result = texas.compare(_user_max_poker);
trace(typeof _result);
trace(typeof _result[0]);
trace(_result[0].length);
__log.show(_result);
